<?	
	class CatalogController extends GridController
	{        
		protected $entity = 'CatalogObject';
		
		public function load()
		{
			$where = array();
			
			if(isset($_GET['query']) && !empty($_GET['query'])){
				$where['or'] = array(
					'eq' => array('id', $_GET['query']),
					'like' => array('name', '%' . $_GET['query'] . '%')
				);
			}
			
			parent::load($where);
		}
	}
?>